/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tdtest.controls.factory;

import javafx.scene.Node;
import tdtest.controls.ControlFactory;
import tdtest.controls.DataStructureControl;
import tdtest.data.TDDataStructure;

/**
 *
 * @author sutter
 */
public class DataStructureControlFactory implements ControlFactory<TDDataStructure> {
	
	@Override
	public Node createControl(TDDataStructure dataStructure) {
		DataStructureControl dataStructureControl = new DataStructureControl(dataStructure);
		return dataStructureControl;
	}
	
	@Override
	public TDDataStructure createObject() {
		return new TDDataStructure();
	}
	
}
